Micron Document
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| SparkN0de-git | SparkN0de |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


Commit c816b2cfd452be1a16cbc50c27ba693fb892d9fd


Parents : 7783f2e
Author : Mark Qvist <mark@unsigned.io>
Date : 2021-05-17T00:07:11+02:00

Updated method names

Changes

2 files changed, 2 insertions(+), 2 deletions(-)


Diff

diff --git a/nomadnet/Conversation.py b/nomadnet/Conversation.py
index 86639de..fc6a09e 100644
--- a/nomadnet/Conversation.py
+++ b/nomadnet/Conversation.py
@@ -35,7 +35,7 @@ class Conversation:
@staticmethod
def query_for_peer(source_hash):
try:
- RNS.Transport.requestPath(bytes.fromhex(source_hash))
+ RNS.Transport.request_path(bytes.fromhex(source_hash))
except Exception as e:
RNS.log("Error while querying network for peer identity. The contained exception was: "+str(e), RNS.LOG_ERROR)

diff --git a/nomadnet/NomadNetworkApp.py b/nomadnet/NomadNetworkApp.py
index 422d1bf..4158091 100644
--- a/nomadnet/NomadNetworkApp.py
+++ b/nomadnet/NomadNetworkApp.py
@@ -98,7 +98,7 @@ class NomadNetworkApp:
try:
RNS.log("No Primary Identity file found, creating new...")
self.identity = RNS.Identity()
- self.identity.save(self.identitypath)
+ self.identity.to_file(self.identitypath)
RNS.log("Created new Primary Identity %s" % (str(self.identity)))
except Exception as e:
RNS.log("Could not create and save a new Primary Identity", RNS.LOG_ERROR)


──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────